/*
 * @Author: your name
 * @Date: 2021-03-30 15:23:53
 * @LastEditTime: 2021-03-31 18:18:36
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-admin-template-master\src\api\product\attr.js
 */
import request from '@/utils/request'
// GET /admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
// attrInfoList

// DELETE /admin/product/deleteAttr/{attrId}
// deleteAttr

// GET /admin/product/getAttrValueList/{attrId}
// getAttrValueList

// POST /admin/product/saveAttrInfo
// saveAttrInfo
export default {
  //
  attrInfoList (category1Id, category2Id, category3Id) {
    return request.get(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`)
  },
  //删除
  deleteAttr (attrId) {
    return request.delete(`/admin/product/deleteAttr/${attrId}`)
  },
  saveAttrInfo (attrInfo) {
    return request.post('/admin/product/saveAttrInfo', attrInfo)
  }
}
